<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body th:fragment="base">
<form id="form1" th:action="@{/user/saveOrUpdate}" method="post">
<div class="setting_search tabs">
	<input type="hidden" name="id" th:value="${entity?.id}" id="entityId"/>
	<table class="table table-form">
		<thead>
			<tr>
				<td width="8%"></td>
				<td width="22%"></td>
				<td width="8%"></td>
				<td width="22%"></td>
				<td width="8%"></td>
				<td width="22%"></td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td align="right"><span class="form-label">登录账号:</span></td>
				<td><input class="form-control" type="text" name="loginId" th:title="${entity?.loginId}" th:value="${entity?.loginId}" placeholder="请输入"/></td>
				<td colspan="4">&nbsp;</td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">姓名:</span></td>
				<td><input class="form-control" type="text" name="userName" th:title="${entity?.userName}" th:value="${entity?.userName}" placeholder="请输入"/></td>
				<td colspan="4">&nbsp;</td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">状态:</span></td>
				<td>
					<select class="form-control" name="enabled">
						<option value="1" th:selected ="${entity?.enabled == '1'}">启用</option>
						<option value="0" th:selected ="${entity?.enabled == '0'}">禁用</option>
					</select>
				</td>
				<td colspan="4">&nbsp;</td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">部门编号:</span></td>
				<td colspan="3">
					<input class="form-control" type="text" name="deptNumber" th:title="${entity?.deptNumber}" th:value="${entity?.deptNumber}" placeholder="请输入"/>
				</td>
				<td colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">部门名称:</span></td>
				<td colspan="3"><input class="form-control" type="text" name="deptName" th:title="${entity?.deptName}" th:value="${entity?.deptName}" placeholder="请输入"/></td>
				<td colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">部门授权产品线:</span></td>
                <td colspan="3">
				    <span class="form-label" th:title="${entity?.productLineStr}" th:text="${entity?.productLineStr}"></span>
                </td>
				<td colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">手机号:</span></td>
				<td><input class="form-control" type="text" name="mobile" th:title="${entity?.mobile}" th:value="${entity?.mobile}" placeholder="请输入"/></td>
				<td colspan="4">&nbsp;</td>
			</tr>
			<tr>
				<td align="right"><span class="form-label">邮箱:</span></td>
				<td colspan="3"><input class="form-control" type="text" name="email" th:title="${entity?.email}" th:value="${entity?.email}" placeholder="请输入"/></td>
				<td colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td colspan="5">
					<a href="javascript:void(0);" class="btn btn-primary" id="btnQuery" onclick="add()" >保存</a>
					<a href="javascript:void(0);" class="btn btn-default border-blue" style="margin-left:15px;" id="btnBack">返回</a>
				</td>
			</tr>
		</tbody>
	</table>
</div>
</form>
</body>
</html>
